{% extends "admin/common/base.html" %}<!--继承基础模板-->
{% block content %}<!--自定义模板区域-->
<form action="/admin/login" method="post" class="form-horizontal" role="form">
    <hr>
    <h3>后台登录</h3>
    {% if msg %}
    <p style="color:red">{{msg}}</p>
    {% endif %}
    {{ form.csrf_token }}
    <div class="form-group">
        {{ form.email.label }}{{ form.email }}
    </div>
    <div class="form-group">
        {{ form.password.label }}{{ form.password }}
    </div>
    <div class="form-group">
        {{ form.submit }}
    </div>
</form>
{% endblock %}